package com.yjhh.chdataservice.service;

import com.yjhh.chdataservice.beans.PolicyInfoVo;
import com.yjhh.chdataservice.domain.PolicyInfo;
import com.yjhh.chdataservice.util.BaseResultData;
import com.yjhh.chdataservice.util.CommonResultData;
import com.yjhh.chdataservice.util.PageVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

/**
 * 公开查询管理Service
 */
public interface PublicSearchService {

    BaseResultData savePolicyInfo(String ip, String title,String secondTitle, String icon, Integer policyType, Integer contentType, String content);

    CommonResultData<PageVO<PolicyInfoVo>> findPolicyByPaging(Integer pageIndex, Integer pageSize, Integer policyType);

    CommonResultData<PolicyInfo> findPolicyInfo(String id);

    CommonResultData<String> uploadFile(String remortIP, MultipartFile file) throws IOException;

    CommonResultData delPolicy(String id);

    BaseResultData updatePolicy(String remortIP, String id, String title, String secondTitle, String icon, Integer policyType, Integer contentType, String content);

}
